<!DOCTYPE html PUBLIC "-//SQ//DTD HTML 2.0 HoTMetaL + extensions//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>GameBoy Opcodes Summary</title></head>



<body background="opcodes_files/pbbg.htm"><h1>GameBoy Opcode Summary</h1>



<p>The GameBoy has instructions &amp; registers similiar to the 8080, 8085, &amp;



Z80 microprocessors. The internal 8-bit registers are A, B, C, D, E, F, H, &amp;



L. Theses registers may be used in pairs for 16-bit operations as AF, BC, DE, &amp;



HL. The two remaining 16-bit registers are the program counter (PC) and the



stack pointer (SP).</p>



<p>The F register holds the cpu flags. The operation of these flags is



identical to their Z80 relative. The lower four bits of this register always



read zero even if written with a one.</p>



<table border="1"><tbody><tr><td colstart="1" colspan="8" align="CENTER">Flag



Register</td></tr><tr><td colstart="1">7</td><td colstart="2">6</td><td colstart="3">5</td><td colstart="4">4</td><td colstart="5">3</td><td colstart="6">2</td><td colstart="7">1</td><td colstart="8">0</td></tr><tr><td colstart="1">Z</td><td colstart="2">N</td><td colstart="3">H</td><td colstart="4">C</td><td colstart="5">0</td><td colstart="6">0</td><td colstart="7">0</td><td colstart="8">0</td></tr>      







</tbody></table>



<p>The GameBoy CPU is based on a subset of the Z80 microprocessor. A summary of



these commands is given below.</p>



<table border="3"><tbody><tr><td colstart="1">Mnemonic</td><td colstart="2">Symbolic



Operation</td><td colstart="3">Comments</td><td colstart="4">CPU Clocks</td><td colstart="5">Flags - Z,N,H,C</td></tr>                        







</tbody></table>



<h3>8-Bit Loads</h3>



<table border="1"><tbody><tr><td colstart="1">LD r,s</td><td colstart="2">r



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> s</td><td colstart="3" align="CENTER">s=r,n,(HL)</td><td colstart="4" align="CENTER">r=4,



n=8, (HL)=8</td></tr><tr><td colstart="1">LD d,r</td><td colstart="2">d



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> r</td><td colstart="3" rowspan="2" align="CENTER">d=r,(HL)</td><td colstart="4" align="CENTER">r=4, (HL)=8</td></tr><tr><td colstart="1">LD d,n</td><td colstart="2">d



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> n</td><td colstart="4" align="CENTER">r=8, (HL)=12</td></tr><tr><td colstart="1">LD



A,(ss)</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (ss)</td><td colstart="3" align="CENTER">ss=BC,DE,HL,nn</td><td colstart="4" rowspan="2">[BC,DE,HL]=8,



nn=16</td></tr><tr><td colstart="1">LD (dd),A</td><td colstart="2">(dd)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A</td><td colstart="3">dd=BC,DE,HL,nn</td></tr><tr><td colstart="1" rowspan="2">LD



A,(C)</td><td colstart="2" rowspan="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> ($FF00+C)</td><td colstart="3" rowspan="9" align="CENTER">-</td><td colstart="4" rowspan="2" align="CENTER">8</td></tr><tr></tr><tr><td colstart="1">LD (C),A</td><td colstart="2">($FF00+C)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A</td><td colstart="4" align="CENTER">8</td></tr><tr><td colstart="1">LDD A,(HL)</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (HL), HL



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> HL - 1</td><td colstart="4" align="CENTER">8</td></tr><tr><td colstart="1">LDD (HL),A</td><td colstart="2">(HL)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A, HL



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> HL - 1</td><td colstart="4" align="CENTER">8</td></tr><tr><td colstart="1">LDI A,(HL)</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (HL), HL



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> HL + 1</td><td colstart="4" align="CENTER">8</td></tr><tr><td colstart="1">LDI (HL),A</td><td colstart="2">(HL)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A, HL



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> HL + 1</td><td colstart="4" align="CENTER">8</td></tr><tr><td colstart="1">LDH (n),A</td><td colstart="2">($FF00+n)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A</td><td colstart="4" align="CENTER">12</td></tr><tr><td colstart="1">LDH A,(n)</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> ($FF00+n)</td><td colstart="4" align="CENTER">12</td></tr>       







</tbody></table>



<h3>16-Bit Loads</h3>



<table border="1"><tbody><tr><td colstart="1">LD dd,nn</td><td colstart="2">dd



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> nn</td><td colstart="3">dd=BC,DE,HL,SP</td><td colstart="4">12</td><td colstart="5" rowspan="3">-</td><td colstart="6" rowspan="3">-</td><td colstart="7" rowspan="3">-</td><td colstart="8" rowspan="3">-</td></tr><tr><td colstart="1">LD (nn),SP</td><td colstart="2">(nn)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> SP



</td><td colstart="3" rowspan="3" align="CENTER">-</td><td colstart="4">20</td></tr>



<tr><td colstart="1">LD SP,HL



</td><td colstart="2">SP



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> HL</td><td colstart="4" align="CENTER">8</td></tr><tr><td colstart="1">LD HL,(SP+e)</td><td colstart="2">HL



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (SP+e)</td><td colstart="4">12</td><td colstart="5">0</td><td colstart="6">0</td><td colstart="7">*</td><td colstart="8">*</td></tr><tr><td colstart="1" rowspan="2">PUSH ss</td><td colstart="2" rowspan="2">



   (SP-1) <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">



ssh, (SP-2) <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">



ssl, SP<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">SP-2



</td><td colstart="3" rowspan="2">ss=BC,DE,HL,AF</td><td colstart="4" rowspan="2">16</td><td colstart="5" rowspan="3">-</td><td colstart="6" rowspan="3">-</td><td colstart="7" rowspan="3">-</td><td colstart="8" rowspan="3">-</td></tr><tr></tr><tr><td colstart="1">POP dd



</td><td colstart="2">ddl



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (SP), ddh



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (SP+1), SP<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">SP+2



</td><td colstart="3">dd=BC,DE,HL,AF



</td><td colstart="4">12</td></tr>                        







</tbody></table>



<h3>8-Bit ALU</h3>



<table border="1"><tbody><tr><td colstart="1">ADD A,s</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A + s



</td><td colstart="3" rowspan="8">CY is the carry flag. s=r,n,(HL)</td><td colstart="4" rowspan="8">r=4, n=8, (HL)=8</td><td colstart="5" rowspan="2">*</td><td colstart="6" rowspan="2">0</td><td colstart="7" rowspan="2">*</td><td colstart="8" rowspan="2">*</td>



</tr><tr><td colstart="1">ADC A,s</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A + s + CY



</td></tr><tr><td colstart="1">SUB s</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A - s



</td><td colstart="5" rowspan="2">*</td><td colstart="6" rowspan="2">1</td><td colstart="7" rowspan="2">*</td><td colstart="8" rowspan="2">*</td>



</tr><tr><td colstart="1">SBC A,s</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A - s - CY



</td></tr><tr><td colstart="1">AND s</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A



<img src="opcodes_files/and.gif" align="BOTTOM" height="8" width="8"> s</td><td colstart="5">*</td><td colstart="6">0</td><td colstart="7">1</td><td colstart="8">0</td></tr><tr>



 



<td colstart="1">OR s</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A



<img src="opcodes_files/or.gif" align="BOTTOM" height="8" width="8"> s



</td><td colstart="5" rowspan="2">*</td><td colstart="6" rowspan="2">0</td><td colstart="7" rowspan="2">0</td><td colstart="8" rowspan="2">0</td></tr><tr><td colstart="1">XOR s</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> A



<img src="opcodes_files/xor.gif" align="BOTTOM" height="7" width="7"> s



</td></tr><tr><td colstart="1">CP s</td><td colstart="2">A - s</td><td colstart="5">*</td><td colstart="6">1</td><td colstart="7">*</td><td colstart="8">*</td></tr><tr><td colstart="1">INC s</td><td colstart="2">s



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> s + 1



</td><td colstart="3" rowspan="2" align="CENTER">s=r,(HL)</td><td colstart="4" rowspan="2" align="CENTER">r=4, (HL)=12</td><td colstart="5" align="CENTER">*</td><td colstart="6" align="CENTER">0</td><td colstart="7" align="CENTER">*</td><td colstart="8" align="CENTER">-</td></tr><tr><td colstart="1">DEC s</td>



<td colstart="2">s



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> s - 1



</td><td colstart="5">*</td><td colstart="6">1</td><td colstart="7">*</td><td colstart="8" align="CENTER">-</td></tr>                        







</tbody></table>



<h3>16-Bit Arithmetic</h3>



<table border="1"><tbody><tr><td colstart="1">ADD HL,ss</td><td colstart="2">HL



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> HL + ss



</td><td colstart="3" rowspan="4">ss=BC,DE,HL,SP</td><td colstart="4" align="CENTER">8</td><td colstart="5" align="CENTER">-</td><td colstart="6" align="CENTER">0</td><td colstart="7" align="CENTER">*</td><td colstart="8" align="CENTER">*</td></tr><tr><td colstart="1">ADD SP,e</td><td colstart="2">SP



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> SP + e



</td><td colstart="4">16</td><td colstart="5">0</td><td colstart="6">0</td><td colstart="7">*</td><td colstart="8">*</td></tr><tr><td colstart="1">INC ss</td><td colstart="2">ss



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> ss + 1



</td><td colstart="4" align="CENTER">8</td><td colstart="5" rowspan="2" align="CENTER">-</td><td colstart="6" rowspan="2" align="CENTER">-</td><td colstart="7" rowspan="2" align="CENTER">-</td><td colstart="8" rowspan="2" align="CENTER">-</td></tr><tr><td colstart="1">DEC



ss</td><td colstart="2">ss



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> ss - 1



</td><td colstart="4" align="CENTER">8</td></tr>                       







</tbody></table>



<h3>Miscellaneous</h3>



<table border="1"><tbody><tr><td colstart="1">SWAP s</td><td colstart="2"><img src="opcodes_files/swap.gif" align="BOTTOM" height="37" width="70"></td><td colstart="3">Swap nibbles. s=r,(HL)</td><td colstart="4">r=8, (HL)=16</td><td colstart="5">*</td><td colstart="6">0</td><td colstart="7">0</td><td colstart="8">0</td></tr><tr><td colstart="1">DAA</td><td colstart="2">Converts



A into packed BCD.</td><td colstart="3" rowspan="2" align="CENTER">-</td><td colstart="4" align="CENTER">4</td><td colstart="5" align="CENTER">*</td><td colstart="6" align="CENTER">-</td><td colstart="7" align="CENTER">0</td><td colstart="8" align="CENTER">*</td></tr>



<tr><td colstart="1">CPL</td><td colstart="2">A



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> /A</td><td colstart="4" align="CENTER">4</td><td colstart="5" align="CENTER">-</td><td colstart="6" align="CENTER">1</td><td colstart="7" align="CENTER">1</td><td colstart="8" align="CENTER">-</td></tr><tr><td colstart="1">CCF</td><td colstart="2">



  CY <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> /CY



</td><td colstart="3" rowspan="2">CY is the carry flag.</td><td colstart="4" align="CENTER">4</td><td colstart="5" align="CENTER">-</td><td colstart="6" align="CENTER">0</td><td colstart="7" align="CENTER">0</td><td colstart="8" align="CENTER">*</td></tr>



<tr><td colstart="1">SCF</td><td colstart="2">CY



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> 1</td><td colstart="4" align="CENTER">4</td><td colstart="5" align="CENTER">-</td><td colstart="6" align="CENTER">0</td><td colstart="7" align="CENTER">0</td><td colstart="8" align="CENTER">1</td></tr><tr><td colstart="1">NOP</td><td colstart="2">No operation.</td><td colstart="3" rowspan="5" align="CENTER">-</td><td colstart="4" align="CENTER">4</td><td colstart="5" rowspan="5" align="CENTER">-</td>



<td colstart="6" rowspan="5" align="CENTER">-</td><td colstart="7" rowspan="5" align="CENTER">-</td><td colstart="8" rowspan="5" align="CENTER">-</td></tr><tr><td colstart="1">HALT</td><td colstart="2">Halt CPU until an interrupt occurs.</td><td colstart="4" align="CENTER">4</td></tr><tr><td colstart="1">STOP



</td><td colstart="2">Halt CPU.</td><td colstart="4" align="CENTER">4</td></tr><tr><td colstart="1">DI</td><td colstart="2">Disable Interrupts.</td><td colstart="4" align="CENTER">4</td></tr>



<tr><td colstart="1">EI</td><td colstart="2">Enable Interrupts.



</td><td colstart="4" align="CENTER">4</td></tr>                      







</tbody></table>



<h3>Rotates &amp; Shifts</h3>



<table border="1"><tbody><tr><td colstart="1">RLCA</td><td colstart="2"><img src="opcodes_files/rlc.gif" height="22" width="92"></td>

<td colstart="3" rowspan="4"></td><td colstart="4" rowspan="4">4</td>

<td colstart="5" rowspan="4">0</td><td colstart="6" rowspan="4">0</td>

<td colstart="7" rowspan="4">0</td><td colstart="8" rowspan="4">*</td>

</tr>

<tr>

 <td colstart="1">RLA</td>

 <td colstart="2"><img src="opcodes_files/rl.gif" align="BOTTOM" height="22" width="92"></td>

</tr>

<tr>

 <td colstart="1">RRCA</td>

 <td colstart="2"><img src="opcodes_files/rrc.gif" align="BOTTOM" height="22" width="92"></td>

</tr>

<tr>

 <td colstart="1">RRA</td>

 <td colstart="2"><img src="opcodes_files/rr.gif" align="BOTTOM" height="22" width="92"></td>

</tr>

<tr>

 <td colstart="1">RLC s</td>

 <td colstart="2"><img src="opcodes_files/rlc.gif" height="22" width="92"></td>

 <td colstart="3" rowspan="4">s=A,r,(HL)</td>

 <td colstart="4" rowspan="4">r=8,(HL)=16</td>

 <td colstart="5" rowspan="7">*</td>

 <td colstart="6" rowspan="7">0</td>

 <td colstart="7" rowspan="7">0</td>

 <td colstart="8" rowspan="7">*</td>

</tr><tr><td colstart="1">RL s</td><td colstart="2"><img src="opcodes_files/rl.gif" align="BOTTOM" height="22" width="92"></td></tr><tr><td colstart="1">RRC s</td><td colstart="2"><img src="opcodes_files/rrc.gif" align="BOTTOM" height="22" width="92"></td></tr><tr><td colstart="1">RR s</td><td colstart="2"><img src="opcodes_files/rr.gif" align="BOTTOM" height="22" width="92"></td></tr><tr><td colstart="1">SLA s</td><td colstart="2"><img src="opcodes_files/sla.gif" align="BOTTOM" height="23" width="92"></td><td colstart="3" rowspan="3">s=r,(HL)</td><td colstart="4" rowspan="3">r=8,



(HL)=16</td></tr><tr><td colstart="1">SRA s</td><td colstart="2"><img src="opcodes_files/sra.gif" align="BOTTOM" height="22" width="92"></td></tr><tr><td colstart="1">SRL s</td><td colstart="2"><img src="opcodes_files/srl.gif" align="BOTTOM" height="22" width="92"></td></tr>       



               







</tbody></table>



<h3>Bit Opcodes</h3>



<table border="1"><tbody><tr><td colstart="1">BIT b,s</td><td colstart="2">Z



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> /sb</td><td colstart="3" rowspan="3">Z is zero flag. s=r,(HL)</td><td colstart="4">r=8,



(HL)=12</td><td colstart="5">*</td><td colstart="6">0</td><td colstart="7">1</td><td colstart="8">-</td></tr><tr><td colstart="1">SET b,s</td><td colstart="2">sb



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> 1</td><td colstart="4" rowspan="2">r=8, (HL)=16</td><td colstart="5" rowspan="2">-</td><td colstart="6" rowspan="2">-</td><td colstart="7" rowspan="2">-</td><td colstart="8" rowspan="2">-</td></tr><tr><td colstart="1">RES b,s</td><td colstart="2">sb



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> 0</td>



</tr>                   







</tbody></table>



<h3>Jumps</h3>



<table border="1"><tbody><tr><td colstart="1">JP nn</td><td colstart="2">PC



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> nn</td><td colstart="3" rowspan="5" align="CENTER">-</td><td colstart="4" align="CENTER">16</td></tr>



<tr><td colstart="1">JP cc,nn</td><td colstart="2">If cc is true, PC



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> nn, else



continue.</td><td colstart="4">If cc is true, 16 else 12.</td></tr><tr><td colstart="1">JP (HL)</td><td colstart="2">PC



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> HL</td><td colstart="4" align="CENTER">4</td></tr><tr><td colstart="1">JR e</td><td colstart="2">PC



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> PC + e



</td><td colstart="4" align="CENTER">12</td></tr><tr><td colstart="1">JR cc,e</td>



<td colstart="2">if cc is true, PC



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> PC + e,



else continue.</td><td colstart="4">If cc is true, 12 else 8.</td></tr>        



          







</tbody></table>



<h3>Calls</h3>



<table border="1"><tbody><tr><td colstart="1">CALL nn</td><td colstart="2">(SP-1)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> PCh,



(SP-2) <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">



PCl, PC <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">



nn, SP<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">SP-2



</td><td colstart="3" rowspan="2" align="CENTER">-</td><td colstart="4" align="CENTER">24</td></tr><tr><td colstart="1">CALL cc,nn</td><td colstart="2">If condition cc is false continue, else same as CALL nn.</td><td colstart="4">If cc is true, 24 else 12.</td></tr>                   







</tbody></table>



<h3>Restarts</h3>



<table border="1"><tbody><tr><td colstart="1">RST f</td><td colstart="2">(SP-1)



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> PCh,



(SP-2) <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">



PCl, PCh <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">



0, PCl <img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> f,



SP<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">SP-2



</td><td colstart="3" align="CENTER">-



</td><td colstart="4" align="CENTER">16</td></tr>                   







</tbody></table>



<h3>Returns</h3>



<table border="1"><tbody><tr><td colstart="1">RET</td><td colstart="2">pcl



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (SP), pch



<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15"> (SP+1), SP<img src="opcodes_files/arrow.gif" align="BOTTOM" height="7" width="15">SP+2



</td><td colstart="3" rowspan="3" align="CENTER">-</td><td colstart="4" align="CENTER">16</td></tr><tr><td colstart="1">RET cc</td><td colstart="2">If cc is true, RET else continue.</td><td colstart="4">If cc is



true, 20 else 8.</td></tr><tr><td colstart="1">RETI</td><td colstart="2">Return



then enable interrupts.</td><td colstart="4" align="CENTER">16</td></tr>       



           







</tbody></table>



<h3>Terminology</h3>



<table border="1"><tbody><tr><td colstart="1">-</td><td colstart="2">Flag is not



affected by this operation.</td></tr><tr><td colstart="1">*</td><td colstart="2">Flag is affected according to result of operation.</td></tr><tr><td colstart="1">b</td><td colstart="2">A bit number in any 8-bit register or



memory location.</td></tr><tr><td colstart="1">C</td><td colstart="2">Carry



flag.</td></tr><tr><td colstart="1">cc



</td><td colstart="2">Flag condition code: C,NC,NZ,Z</td></tr><tr><td colstart="1">d</td><td colstart="2">Any 8-bit destination register or memory



location.</td></tr><tr><td colstart="1">dd</td><td colstart="2">Any 16-bit



destination register or memory location.</td></tr><tr><td colstart="1">e</td><td colstart="2">8-bit signed 2's complement displacement.</td></tr><tr><td colstart="1">f</td><td colstart="2">8 special call locations in page zero.



</td></tr><tr><td colstart="1">H</td><td colstart="2">Half-carry flag.</td></tr><tr><td colstart="1">N</td><td colstart="2">Subtraction flag.</td></tr><tr><td colstart="1">NC</td><td colstart="2">Not carry flag</td></tr><tr><td colstart="1">NZ</td><td colstart="2">Not zero flag.</td></tr><tr><td colstart="1">n</td><td colstart="2">Any 8-bit binary number.</td></tr><tr><td colstart="1">nn</td><td colstart="2">Any 16-bit binary number.</td></tr><tr><td colstart="1">r</td><td colstart="2">Any 8-bit register. (A,B,C,D,E,H, or L)</td></tr>



<tr><td colstart="1">s</td><td colstart="2">Any 8-bit source register or



memory location.</td></tr><tr><td colstart="1">sb</td><td colstart="2">A bit



in a specific 8-bit register or memory location.</td></tr><tr><td colstart="1">ss</td>



<td colstart="2">Any 16-bit source register or memory location.</td></tr><tr><td colstart="1">Z</td><td colstart="2">Zero Flag.</td></tr> 



</tbody></table>







</body></html>